﻿using System.Collections.Generic;
using Ease.EaseDialog.Runtime.Data;
using Ease.EaseNode.Editor.NodeView;
using UnityEditor.Experimental.GraphView;
using UnityEngine;

namespace Ease.EaseDialog.Editor
{
    public class CreateSearchMenuWindowProvider : BaseSearchMenuWindowProvider
    {
        protected override List<SearchTreeEntry> DoCreateSearchTree(SearchWindowContext context)
        {
            var entries = new List<SearchTreeEntry>();
            entries.Add(new SearchTreeGroupEntry(new GUIContent("创建")));
            entries.Add(new SearchTreeGroupEntry(new GUIContent("对话")) {level = 1});
            entries.Add(new SearchTreeEntry(new GUIContent("普通对话")) {level = 2, userData = typeof(DialogData)});
            entries.Add(new SearchTreeEntry(new GUIContent("选项")) {level = 2, userData = typeof(DialogData2)});
            return entries;
        }
    }
}